<%@ page pageEncoding="UTF-8"%>
<%@ include file="../commons/head.jsp"%>
<title>查看会员详情</title>
<head>
<script type="text/javascript">
function loadMember(){
	$("#branchCenter").combobox('select',$("#inp").val());
}
</script>
</head>
<body onload="loadMember()">
	<div class="jianju">
		<h3>会员详情</h3>
		<div class="container-fluid">
			<form class="form-horizontal">
				<div class="form-group">
					<label for="cellPhone" class="col-md-3 control-label"
						style="margin-top: 6px;">开单中心：</label>
					<div class="col-md-2">
						<select id="branchCenter" name="branchId" class="easyui-combobox"
							style="width: 180px; height: 34px;" mode="remote"
							url="${ctx}/member/findUserName?f=false" valueField="userAccount"
							textField="username" method="get" editable="false" readonly="readonly"
							panelHeight="600px;">
						</select>
						<input type="text" id="inp" name=branchId value="${memberEntity.branchId }" class="form-control" readonly="readonly" style="width: 180px;display: none;">
					</div>
				</div>
				<div class="form-group">
					<label for="cellPhone" class="col-md-3 control-label"
						style="margin-top: 6px;">会员手机号：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="cellPhone" value="${memberEntity.cellPhone }"
							readonly="readonly" style="width: 180px;">
					</div>
				</div>
				<div class="form-group">
					<label for="memberName" class="col-md-3 control-label"
						style="margin-top: 6px;">会员姓名：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="memberName" value="${memberEntity.memberName }"
							readonly="readonly" style="width: 180px;">
					</div>
				</div>
				<div class="form-group">
					<label for="cellPhone" class="col-md-3 control-label"
						style="margin-top: 6px;">推荐人：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="recommenderCellphone" value="${memberEntity.recommenderCellphone }"
						 readonly="readonly" style="width: 180px;" id="recommenderCellphone"/>
					</div>
					<div class="col-md-2" id="recommenderName" style="margin-top: 6px;"></div>
				</div>

				<div class="form-group">
					<label for="gender" class="col-md-3 control-label"
						style="margin-top: 6px;">性别：</label>
					<div class="col-md-2">
							<c:if test="${memberEntity.gender == 1}">
								<input type="text" class="form-control" name="gender" value="男"
							readonly="readonly" style="width: 180px;">
							</c:if>
							<c:if test="${memberEntity.gender == 2}">
								<input type="text" class="form-control" name="gender" value="女"
							readonly="readonly" style="width: 180px;">
							</c:if>
					</div>
				</div>
				<div class="form-group">
					<label for="idCardNumber" class="col-md-3 control-label"
						style="margin-top: 6px;">身份证号码：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="idCardNumber" value="${memberEntity.idCardNumber }"
							readonly="readonly" style="width: 180px;">
					</div>
				</div>
				<div class="form-group">
					<label for="birthday" class="col-md-3 control-label"
						style="margin-top: 6px;">出生日期：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="birthday" value="${memberEntity.birthday }"
							readonly="readonly" style="width: 180px;">
					</div>
				</div>
				<div class="form-group">
					<label for="familyAddress" class="col-md-3 control-label"
						style="margin-top: 6px;">家庭地址：</label>
					<div class="col-md-4">
						<input type="text" class="form-control" name="familyAddress" value="${memberEntity.familyAddress }"
							readonly="readonly">
					</div>
				</div>
				<div class="form-group">
					<label for="cellPhone" class="col-md-3 control-label"
						style="margin-top: 6px;">身份证图片：</label>
					<div class="col-md-3">
						<img src="${ctx }/upload/${memberEntity.frontPhotoOfIdcard }"
							style="width: 190px; height: 150px;">
					</div>
					<div class="col-md-3">
						<img src="${ctx }/upload/${memberEntity.backPhotoOfIdcard }"
							style="width: 190px; height: 150px;">
					</div>
				</div>
				<div class="form-group">
					<div class="col-md-2"></div>
					<div id="navlist">
						<label style="font-size: 20px;">银行卡信息</label>
					</div>
					<div class="col-md-2"></div>
				</div>
				
				<div class="form-group">
					<label for="bankCardId" class="col-md-3 control-label"
						style="margin-top: 6px;">银行卡号：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="bankCardId" value="${memberEntity.bankCardId }"
							readonly="readonly" style="width: 180px;">
					</div>
				</div>

				<div class="form-group">
					<label for="cellphoneForBankCard" class="col-md-3 control-label"
						style="margin-top: 6px;">银行预留手机号：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="cellphoneForBankCard" value="${memberEntity.cellphoneForBankCard }"
							readonly="readonly" style="width: 180px;">
					</div>
				</div>

				<div class="form-group">
					<label for="bankName" class="col-md-3 control-label"
						style="margin-top: 6px;">银行名称：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="bankName" value="${memberEntity.bankName }"
							readonly="readonly" style="width: 180px;">
					</div>
				</div>
				<div class="form-group">
					<label for="cellPhone" class="col-md-3 control-label"
						style="margin-top: 6px;">银行卡图片：</label>
					<div class="col-md-2">
						<img src="${ctx }/upload/${memberEntity.photoOfBankCard }"
							style="width: 190px; height: 150px;">
					</div>
				</div>

				<!-- 收货地址信息 -->
				<div class="form-group">
					<div class="col-md-2"></div>
					<div id="navlist">
						<label style="font-size: 20px;">收货地址信息</label>
					</div>
					<div class="col-md-2"></div>
				</div>

				<div class="form-group">
					<label for="logisticsName" class="col-md-3 control-label"
						style="margin-top: 6px;">收货人姓名：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="logisticsName" value="${memberEntity.logisticsName }"
							readonly="readonly" style="width: 180px;">
					</div>
					<div class="col-md-3"></div>
				</div>

				<div class="form-group">
					<label for="logisticsPhone" class="col-md-3 control-label"
						style="margin-top: 6px;">收货人联系电话：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="logisticsPhone" value="${memberEntity.logisticsPhone }" readonly="readonly" style="width: 180px;" maxlength="20">
					</div>
					<div class="col-md-3"></div>
				</div>

				<div class="form-group">
					<label for="zipCode" class="col-md-3 control-label"
						style="margin-top: 6px;">邮政编码：</label>
					<div class="col-md-2">
						<input type="text" class="form-control" name="zipCode" value="${memberEntity.zipCode }" readonly="readonly" style="width: 180px;" maxlength="20">
					</div>
					<div class="col-md-3"></div>
				</div>


				<div class="form-group">
					<label for="gender" class="col-md-3 control-label"
						style="margin-top: 6px;">所在地区：</label>
					<div class="col-md-2">
						<input type="text" readonly="readonly" name="province" value="${memberEntity.province }"
							class="form-control" style="width: 180px;">
					</div>
					<div class="col-md-2">
						<input type="text" readonly="readonly" name="city" value="${memberEntity.city }"
							class="form-control" style="width: 180px;">
					</div>
					<div class="col-md-2">
						<input type="text" readonly="readonly" name="district" value="${memberEntity.district }"
							class="form-control" style="width: 180px;">
					</div>

				</div>

				<div class="form-group">
					<label for="address" class="col-md-3 control-label"
						style="margin-top: 6px;">详细地址：</label>
					<div class="col-md-4">
						<input type="text" class="form-control" name="address" value="${memberEntity.address }" readonly="readonly"/>
					</div>
				</div>

				<div class="form-group">
					<label for="gender" class="col-md-3 control-label"
						style="margin-top: 6px;">是否默认：</label>
					<div class="col-md-2">
						<c:if test="${memberEntity.isDefault == 0}">
							<input type="text" readonly="readonly" value="非默认"
								class="form-control" style="width: 180px;">
						</c:if>
						<c:if test="${memberEntity.isDefault == 1}">
							<input type="text" readonly="readonly" value="默认"
								class="form-control" style="width: 180px;">
						</c:if>
					</div>
					<div class="col-md-3"></div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>